//
//  StreetGuideDetailWebViewController.m
//  homeland
//
//  Created by SunShine on 13-11-15.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import "StreetGuideDetailWebViewController.h"

@interface StreetGuideDetailWebViewController ()

@end

@implementation StreetGuideDetailWebViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    if (_item == nil) {
        _item = [_config objectForKey:@"dataItem"];
    }
    self.title = _item.title;
    [_webView loadHTMLString:_item.htmlContent baseURL:nil];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
